/**
 * Created by China Wang on 5/28/14.
 */
public class FizzBuzz {

    public static void main(String[] args) {
        fizzBuzz();
    }

    public static void fizzBuzz() {
        for (int i = 1; i <= 100; i++) {
            if (isDivisibleBy3(i) && isDivisibleBy5(i)) {
                System.out.println("FizzBuzz");
            } else if (isDivisibleBy3(i)) {
                System.out.println("Fizz");
            } else if (isDivisibleBy5(i)) {
                System.out.println("Buzz");
            } else {
                System.out.println(i);
            }
        }
    }

    private static boolean isDivisibleBy3(int n) {
        return n % 3 == 0;
    }

    private static boolean isDivisibleBy5(int n) {
        return n % 5 == 0;
    }

}
